using UnityEngine;

public class AirplaneSpawner : MonoBehaviour
{
	public Vector3 Offset = Vector3.up;

	private void OnDrawGizmos()
	{
	}

	public Vector3 SpawnPoint()
	{
		Vector3 localScale = base.transform.localScale;
		Vector2 vector = RandomOnUnitCircle2(localScale.x);
		return base.transform.position + new Vector3(vector.x, 0f, vector.y) + Offset;
	}

	public static Vector2 RandomOnUnitCircle2(float radius)
	{
		Vector2 insideUnitCircle = UnityEngine.Random.insideUnitCircle;
		insideUnitCircle.Normalize();
		return insideUnitCircle * radius;
	}
}
